﻿@model Teacher

<h3>@ViewBag.PageTitle</h3>

<form method="post" asp-controller="teacher" asp-action="edit" class="mt-3">

    <div class="form-group row">
        <label asp-for="Name" class="col-sm-2 col-form-label">姓名：</label>
        <div class="col-sm-6">
            <input asp-for="Name" class="form-control" placeholder="请输入名字" />
            <span asp-validation-for="Name" class="text-danger"></span>
        </div>
    </div>

    <div class="form-group row">
        <label asp-for="Department" class="col-sm-2 col-form-label">院系：</label>
        <div class="col-sm-6">
            <input asp-for="Department" class="form-control" placeholder="院系" />
            <span asp-validation-for="Department" class="text-danger"></span>
        </div>
    </div>

    <div class="form-group row">
        <label asp-for="Email" class="col-sm-2 col-form-label"></label>
        <div class="col-sm-6">
            <input asp-for="Email" class="form-control" placeholder="邮箱" />
            <span asp-validation-for="Email" class="text-danger"></span>
        </div>
    </div>

    <div class="form-group row">
        <label asp-for="HireDate" class="col-sm-2 col-form-label"></label>
        <div class="col-sm-6">
            <input asp-for="HireDate" type="date" class="form-control" placeholder="入职日期" />
            <span asp-validation-for="HireDate" class="text-danger"></span>
        </div>
    </div>

    <div class="form-group row">
        <div class="col-sm-10">
            <button type="submit" class="btn btn-primary">保存</button>
            <a asp-action="index" class="btn btn-primary">返回</a>
        </div>
    </div>

</form>
